package com.wanxi.service;

import com.wanxi.dao.NavDao;
import com.wanxi.dao.NewsDao;
import com.wanxi.model.NavModel;
import com.wanxi.model.NewsModel;

import java.util.List;

public class NewsService {
    NavDao navDao=new NavDao();
//    获取所有头部标签
    public List<NavModel> getNavModelList() {
        return navDao.getAllNav();
    }
//    获取新闻列表
    public List<NewsModel> getNewsList() {
        NewsDao newsDao=new NewsDao();
        return newsDao.getAllNews();
    }
//    获取新闻页面的标签
    public List<NavModel> getNewsNavModelList() {
        return navDao.getNewsNav();
    }
}
